package models

type RolePermission struct {
	Id           int64 `json:"id"`
	RoleId       int64 `json:"roleId" xorm:"'roleId' index not null"`
	PermissionId int64 `json:"permissionId" xorm:"'permissionId' index not null"`
	Created      int64 `json:"created" xorm:"created"`
	Updated      int64 `json:"updated" xorm:"updated"`
	Deleted      int64 `json:"deleted" xorm:"deleted"`
}

func (RolePermission) TableName() string {
	return "role_permission"
}
